package testslideswitch.testhttpclient;

import android.app.Application;
import android.content.Context;

/**
 * 类描述:应用全局环境
 *
 * @author 王治粮
 * @date 2016/3/3,15:19
 * @Copyright: Copyright (c) 2013 Shenzhen Tentinet Technology Co., Ltd. Inc. All rights reserved.
 */
public class TApplication extends Application {
    /** 全局上下文对象 */
    public static Context context;
    /** api地址 */
    public static String SERVER_API = "";

    @Override
    public void onCreate() {
        if (null == context) {
            context = getApplicationContext();
        }
        super.onCreate();
    }
}
